package com.chinairi.mall.dao;

import com.chinairi.mall.model.FourNewGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinairi.mall.model.ServiceShelf;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 四新商品表 Mapper 接口
 * </p>
 *
 * @author gsl
 * @since 2020-09-14
 */
public interface FourNewGoodsMapper extends BaseMapper<FourNewGoods> {

    /**
     * 查询四新列表
     * @param csDbId
     * @return
     */
    List<FourNewGoods> selectByCsDbId(@Param("csDbId") String csDbId);

    /**
     * 批量提交商品审核
     * @param fourNewGoodsList
     */
    void batchUpdateStatus(@Param("list") List<FourNewGoods> fourNewGoodsList);

    /**
     * 查询四新列表
     * @param fourNewGoods
     * @return
     */
    List<FourNewGoods> getListByCsDbId(@Param("search") FourNewGoods fourNewGoods);

    /**
     * 查询四新商品
     * @param csDbid
     * @return
     */
    Integer countFourNew(@Param("csDbid") String csDbid);
}
